﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NavLine.Aircraft
{
	public partial class AC_Controller
	{
		public bool TowardPoint = false;
		V3G TargetPoint;
		public void NavigateToPoint(V3G pt)
		{
			ResetControl();
			TargetPoint = pt;
			TowardPoint = true;
		}
		void ProcessPoint(double dt)
		{
			if (TowardPoint)
			{
				NavigatingHeading = true;
				TargetHead = aircraft.position.GetHeading(TargetPoint);
			}
		}
	}
}